DataGrid.selectColumns Method

Select columns currently displayed in the table by their indexes according to their position.
 

Parameters

columnIndexes

Type: Array
ElementType: Number (Integer)
Column indexes by position relative to all columns in the table body. Specify frozen columns as negative indexes starting from -1, decreasing by position from left to right.
clearPrevious

Type: Boolean
True to clear the previous selection.
Optional: True
 

Remarks

Columns not currently loaded into the table in the browser cannot be selected using this method.